package com.gomore.opple.utils;

import android.widget.EditText;

public class TextUtil {

	/**
	 * 验证输入框是否为空
	 */
	public static boolean isNull(EditText editText) {
		String text = editText.getText().toString().trim();
		return !(text != null && text.length() > 0);
	}

	public static boolean isValid(String str) {
		boolean isValid = false;
		if (str != null && !"".equals(str.trim())) {
			isValid = true;
		}
		return isValid;
	}

}
